<!DOCTYPE HTML>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <title>hello</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
</head>
<body>
<h1>操作相关</h1>

<h2>端口号 : <em th:text="${#request.localPort}"></em></h2>
<h2>当前sessionId：<em th:text="${#session.id}"></em></h2>

<a th:href="@{/login/logout}"> 退出登录</a>

<table cellpadding="0" cellspacing="0">
    <tr>
        <td>name：</td>
        <td>address：</td>
        <td>phone：</td>
    </tr>


    <tr th:each="item : ${data}">
        <form action="/resume/upd" method="get">
            <input type="hidden" name="id" th:value= "${item.id}"/>
            <td><input type="text" name="name" th:value= "${item.name}"/></td>
            <td><input type="text" name="address" th:value= "${item.address}"/></td>
            <td><input type="text" name="phone" th:value= "${item.phone}"/></td>
            <td><input type="submit" value="更新"/></td>
        </form>
        <td><a th:href="@{/resume/del(id=${item.id})}">删除</a></td>
    </tr>
</table>
<h1>=================分隔符===========================</h1>
<form action="/resume/upd">
    name:<input type="text" name="name"><br/>
    address:<input type="text" name="address"><br/>
    phone:<input type="text" name="phone"><br/>
    <input type="submit" value="添加"><br/>
</form>

</body>
</html>
